#ifndef __FIXPLUGIN_H
#define __FIXPLUGIN_H

#include "BasePlugin.h"

class FixPlugin: public BasePlugin{
public:
	virtual void Start();

protected:
	virtual int FixPlugin::OnBroadcast(int windowID, char* subwindow, char* event, message_t* msg);
	virtual char* GetGUID();
	virtual const char* GetName();
	virtual const char* GetCompany();
	virtual const char* GetVersion();
	virtual const char* GetDescription();

private:
	//returns true is specified message has bug, false otherwise
	bool HasBug(message_t* msg);
	
	//returns fixed text. "fixed" should not be null, it is populated with value, indicating
	//is text was correctly fixed
	char* GetFixedText(char* text, bool *fixed);
};

#endif